package com.ht.managermentserver.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.oauth2.provider.token.RemoteTokenServices;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @author czy
 * @package com.ht.managermentserver.controller
 * @date 2020/5/28 18:16
 */
@RestController
@RequestMapping("/oauth")
@ApiIgnore
public class Oauth2Controller extends BaseController {

  @Autowired RemoteTokenServices remoteTokenServices;

  @GetMapping("/client_target")
  public String clientTarget(@RequestParam final String token, @RequestParam final String redirct) {

    return token + "|" + redirct;
  }
}
